#!\bin\bash

# O executavel, é gerado na pasta bin/
mpicc -o rw_mpi rw_mpi.c src/genmtrand.c src/rw_functions.c src/rw_png.c -lm -lpng -std=c99 -O3 -Wall -fopenmp



for i in $(seq 1 10)
do
   mpiexec -n 2 rw_mpi 1 1024 2048 "$i" 2 >> hibrido/saida_1024_2048_hibrido_2P_2T
done


for i in $(seq 1 10)
do
    mpiexec -n 2 rw_mpi 1 2048 4096 "$i" 2 >> hibrido/saida_2048_4096_hibrido_2P_2T
done


for i in $(seq 1 10)
do
   mpiexec -n 2 rw_mpi 1 4096 8192 "$i" 2 >> hibrido/saida_4096_8192_hibrido_2P_2T
done
